<?php
if(is_file('E:\tvbsvn\platform\cms_framework\branches\2.0\lib\TVB\CmsFramework\v2/require.php')){
	require_once('E:\tvbsvn\platform\cms_framework\branches\2.0\lib/TVB/CmsFramework/v2/require.php');
}else{
	require_once('TVB/CmsFramework/v2/require.php');
}
require_once('inc/require.php');
require_once('datasource/AppConfiguration.class.php');
require_once('datasource/data.php');

$page = new CmsPage();

CmsManager::set('cdn_path', 'cdn/');
//CmsManager::set('skin', 'cupertino');
CmsManager::set('app_tpl_root', dirname(__FILE__).'/../');

$service_get_country = AC::$service_get_country;
$video_bitrates = json_encode(AC::$video_bitrates);
$css = <<<HTML
<style>

</style>
<script>
var mConfigs = {
	VIDEO_BITRATES: {$video_bitrates},
	URL: {
		GET_COUNTRY: '{$service_get_country}'
	}
};
</script>
HTML;

$js = <<<HTML
HTML;
CmsManager::addEmbedContent(
    array('css_inline'=>array($css, 'project.css'),
          'js_inline' =>array($js),
          'js_init' =>array('jquery.autocomplete.js','canvas.js','project-init.js')
    )
);
$t = CmsManager::getEmbedContent();

$page->page_top = $t['top'];
$page->page_bottom = $t['bottom'];


?>